package com.ruoyi.inventory.mapper;

import java.util.List;
import com.ruoyi.inventory.domain.TWhWarehouse;

/**
 * 仓库Mapper接口
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public interface TWhWarehouseMapper 
{
    /**
     * 查询仓库
     * 
     * @param code 仓库主键
     * @return 仓库
     */
    public TWhWarehouse selectTWhWarehouseByCode(String code);

    /**
     * 查询仓库列表
     * 
     * @param tWhWarehouse 仓库
     * @return 仓库集合
     */
    public List<TWhWarehouse> selectTWhWarehouseList(TWhWarehouse tWhWarehouse);

    /**
     * 新增仓库
     * 
     * @param tWhWarehouse 仓库
     * @return 结果
     */
    public int insertTWhWarehouse(TWhWarehouse tWhWarehouse);

    /**
     * 修改仓库
     * 
     * @param tWhWarehouse 仓库
     * @return 结果
     */
    public int updateTWhWarehouse(TWhWarehouse tWhWarehouse);

    /**
     * 删除仓库
     * 
     * @param code 仓库主键
     * @return 结果
     */
    public int deleteTWhWarehouseByCode(String code);

    /**
     * 批量删除仓库
     * 
     * @param codes 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTWhWarehouseByCodes(String[] codes);

    /**
     * 物理删除仓库
     * 
     * @param code 仓库主键
     * @return 结果
     */
    public int physicallyDeleteTWhWarehouseByCode(String code);
}
